package com.haste.service;

import com.haste.dao.DeptMapper;
import com.haste.pojo.Dept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName:DeptServiceImpl
 * @Description:
 * @Author:Haste
 * @Date:2021/2/1 17:37
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    private DeptMapper deptDao;
    @Override
    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public Dept queryById(Long deptId) {
        return deptDao.queryById(deptId);
    }

    @Override
    public List<Dept> queryAll() {
        return deptDao.queryAll();
    }
}
